# coding: utf-8
""" 启动生成器的方法
	01.next(gen)
	02.gen.send(None)
	send: 接收生成器返回, 并传参给生成器的下次调用
"""

def MyGenerator():
	v = yield 1
	yield v

gen = MyGenerator()

print (gen.send(None))
print (next(gen))
gen.close()
